package com.ruoyi.school.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学校管理对象 qcl_school
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@TableName("qcl_school")
@Data
public class School extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 学校ID
     */
    @Excel(name = "学校ID")
    private Long id;

    /**
     * 学校名字
     */
    @Excel(name = "学校名字")
    private String schoolName;

    /**
     * 归属学校
     */
    @Excel(name = "归属学校")
    private String schoolBelonging;

    /**
     * 法人
     */
    @Excel(name = "法人")
    private String schoolLegalPerson;

    /**
     * 学校所在省市区
     */
    @Excel(name = "学校所在省市区")
    private String schoolProvince;

    /**
     * 学校详细地址
     */
    @Excel(name = "学校详细地址")
    private String schoolDetailAddr;

    /**
     * 学校执照
     */
    @Excel(name = "学校执照")
    private String schoolLicense;

    /**
     * 法人身份证背面
     */
    @Excel(name = "法人身份证背面")
    private String schoolPerBack;

    /**
     * 法人身份证正面
     */
    @Excel(name = "法人身份证正面")
    private String schoolPerFront;

    /**
     * 学校门头
     */
    @Excel(name = "学校门头")
    private String schoolImage;

    /**
     * 学校状态（1正常 0不正常）
     */
    @Excel(name = "学校状态", readConverterExp = "1=正常,0=不正常")
    private String schoolStatus;

    /**
     * 学校电话
     */
    @Excel(name = "学校电话")
    private String schoolAttack;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getSchoolBelonging() {
        return schoolBelonging;
    }

    public void setSchoolBelonging(String schoolBelonging) {
        this.schoolBelonging = schoolBelonging;
    }

    public void setSchoolLegalPerson(String schoolLegalPerson) {
        this.schoolLegalPerson = schoolLegalPerson;
    }

    public String getschoolLegalPerson() {
        return schoolLegalPerson;
    }

    public String getSchoolProvince() {
        return schoolProvince;
    }

    public void setSchoolProvince(String schoolProvince) {
        this.schoolProvince = schoolProvince;
    }

    public String getSchoolDetailAddr() {
        return schoolDetailAddr;
    }

    public void setSchoolDetailAddr(String schoolDetailAddr) {
        this.schoolDetailAddr = schoolDetailAddr;
    }

    public String getSchoolLicense() {
        return schoolLicense;
    }

    public void setSchoolLicense(String schoolLicense) {
        this.schoolLicense = schoolLicense;
    }

    public String getSchoolPerBack() {
        return schoolPerBack;
    }

    public void setSchoolPerBack(String schoolPerBack) {
        this.schoolPerBack = schoolPerBack;
    }

    public String getSchoolPerFront() {
        return schoolPerFront;
    }

    public void setSchoolPerFront(String schoolPerFront) {
        this.schoolPerFront = schoolPerFront;
    }

    public String getSchoolImage() {
        return schoolImage;
    }

    public void setSchoolImage(String schoolImage) {
        this.schoolImage = schoolImage;
    }

    public String getSchoolStatus() {
        return schoolStatus;
    }

    public void setSchoolStatus(String schoolStatus) {
        this.schoolStatus = schoolStatus;
    }

    public String getSchoolAttack() {
        return schoolAttack;
    }

    public void setSchoolAttack(String schoolAttack) {
        this.schoolAttack = schoolAttack;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("schoolName", getSchoolName())
                .append("schoolBelonging", getSchoolBelonging())
                .append("schoolLegalPerson", getschoolLegalPerson())
                .append("schoolProvince", getSchoolProvince())
                .append("schoolDetailAddr", getSchoolDetailAddr())
                .append("schoolLicense", getSchoolLicense())
                .append("schoolPerBack", getSchoolPerBack())
                .append("schoolPerFront", getSchoolPerFront())
                .append("schoolImage", getSchoolImage())
                .append("schoolStatus", getSchoolStatus())
                .append("schoolAttack", getSchoolAttack())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
